#ifndef utility_Exception_h
#define utility_Exception_h

#include "String.h"

namespace serika
{
	namespace ut
	{
		class Exception
		{
		public:
			Exception(int code, const String& msg)
				: mCode(code)
				, mMsg(msg)
			{
			}
			virtual ~Exception() {}

			int GetCode() const { return mCode; }
			const ut::String& GetMsg() const { return mMsg; }

		private:
			int mCode;
			ut::String mMsg;
		};
	}
}

#endif
